package com.qf.Impl;

import com.qf.dao.AdminDao;
import com.qf.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * --- 就那样---
 *
 * @author zzw
 * @date 2025/8/14
 * @desc
 */

/**
 * 之前需要在控制层new业务层实现类对象，现在只需要在业务层实现类加注解，该类对象就会由spring管理
 */
@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminDao adminDao;
    @Override
    public void login() {
        System.out.println("处理业务逻辑");
        adminDao.login();
    }
}